package learning.designpatterns.strategy.taxes.context;

import learning.designpatterns.strategy.taxes.model.Product;
import learning.designpatterns.strategy.taxes.strategies.TaxStrategy;

/**
 * Created by bibro on 16.03.14.
 */
public class TaxCounter {
    private TaxStrategy taxStrategy;

    public double countTax(Product product) {
        return taxStrategy.countTax(product.getProductPrice());
    }

    public TaxStrategy getTaxStrategy() {
        return taxStrategy;
    }

    public void setTaxStrategy(TaxStrategy taxStrategy) {
        this.taxStrategy = taxStrategy;
    }
}
